Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

improve concurrency in the checkPaths function #267

Closed

Conversation

alexandear
Copy link
Contributor

The PR refactors checkPaths implementation.
Previously, we wrote all the packages to the work channel before starting to check them. Now, we check each package as soon as it is added to the work channel.

@kisielk
Copy link
Owner

kisielk commented Feb 20, 2025

Do you have any benchmarks or tests that show this makes an improvement? I'm skeptical there would be any noticable difference especially with a buffered channel.

@alexandear
Copy link
Contributor Author

Closing as the improvement is not significant.

I ran errcheck on a few large repositories and did not notice any significant improvement in execution time.

@alexandear alexandear closed this Feb 20, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants